package submarine;

import java.util.Random;

/**
 * 鱼雷潜艇
 */

public class TorpedoSubmarine {
    int width;
    int height;
    int x;
    int y;
    int speed;

    TorpedoSubmarine(){
            width=64;
            height=20;
            x=-width;
            Random rand=new Random();
            y= rand.nextInt(479-150-height+1)+150;
            speed=rand.nextInt(3)+1;

    }

    void move(){
        System.out.println("鱼雷潜艇x向右移动");
    }

}
